<div class="courses">
    <div>Java</div>
    <div>Web</div>
    <div>Android</div>
</div>
<div>Welcome</div>
<style>
    div.courses {
        border: 1px solid lightgray;
        /*height: 100px;*/
        overflow: hidden;
    }
    div.courses > div {
        /*float: left;*/
        float: right;
    }
</style>